﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NetTopologySuite.Geometries;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_buildings_layer")]
    public partial class ZmBuildingsLayer : Repository.IEntity
    {
        [Key]
        [Column("id", TypeName = "character varying")]
        public string Id { get; set; }
        [Column("geom", TypeName = "geometry(MultiPolygon,4326)")]
        public MultiPolygon Geom { get; set; }
        [Column("bh")]
        [StringLength(50)]
        public string Bh { get; set; }
        [Column("province")]
        [StringLength(6)]
        public string Province { get; set; }
        [Column("city")]
        [StringLength(6)]
        public string City { get; set; }
        [Column("xzqdm")]
        [StringLength(6)]
        public string Xzqdm { get; set; }
        [Column("town")]
        [StringLength(12)]
        public string Town { get; set; }
        [Column("village")]
        [StringLength(12)]
        public string Village { get; set; }
        [Column("zu_qg")]
        [StringLength(100)]
        public string ZuQg { get; set; }
        [Column("lu_qg")]
        [StringLength(100)]
        public string LuQg { get; set; }
        [Column("hao_qg")]
        [StringLength(100)]
        public string HaoQg { get; set; }
        [Column("address")]
        [StringLength(254)]
        public string Address { get; set; }
        [Column("cs")]
        public long? Cs { get; set; }
        [Column("fwbh")]
        [StringLength(15)]
        public string Fwbh { get; set; }
        [Column("yhfwbh")]
        [StringLength(36)]
        public string Yhfwbh { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("pczt_housing")]
        public int? PcztHousing { get; set; }
        [Column("pczt_fire")]
        public int? PcztFire { get; set; }
        [Column("pczt_police")]
        public int? PcztPolice { get; set; }
        [Column("hzxm")]
        [StringLength(255)]
        public string Hzxm { get; set; }
        [Column("level")]
        public int? Level { get; set; }
        [Column("bz")]
        [StringLength(254)]
        public string Bz { get; set; }
        [Column("dcmj")]
        public double? Dcmj { get; set; }
        [Column("mc")]
        [StringLength(254)]
        public string Mc { get; set; }
        [Column("build_time")]
        [StringLength(254)]
        public string BuildTime { get; set; }
    }
}
